package cn.cms.chuangjia.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author oldliu
 * @since 1.0
 */
@Configuration
public class PrinterConfig {
    @Bean(name = "a4")
    public TextPaper a4() {
        TextPaper p = new TextPaper();
        p.setWords(17);
        p.setLines(20);
        return p;
    }
    @Bean(name = "b5")
    public TextPaper b5() {
        TextPaper p = new TextPaper();
        p.setWords(10);
        p.setLines(14);
        return p;
    }
}
